$OpenBSD: patch-configure_in,v 1.9 2005/12/23 06:31:31 jakemsr Exp $
--- configure.in.orig	Sat Mar 25 23:33:22 2000
+++ configure.in	Thu Dec 22 22:30:04 2005
@@ -1,34 +1,33 @@
 AC_INIT(interface/interface.c)
+AC_CONFIG_HEADERS(config.h)
 
-cp $srcdir/configure.guess $srcdir/config.guess
-cp $srcdir/configure.sub $srcdir/config.sub
-
 AC_CANONICAL_HOST
 
-if test -z "$CC"; then
-	AC_PROG_CC	
-fi
+AC_PROG_CC	
 AC_PROG_RANLIB
 AC_CHECK_PROG(AR,ar,ar)
 AC_CHECK_PROG(INSTALL,install,install)
 
 if test -z "$GCC"; then
 	DEBUG="-g"
-	OPT="-O"
+	OPT="${CFLAGS}"
 else
 	case $host in 
-	i?86-*-linux*)
+	i?86-*-*)
 		DEBUG="-g -Wall -fsigned-char"
-		OPT="-O20 -ffast-math -fsigned-char -finline-functions";;
+		OPT="${CFLAGS} -ffast-math -fsigned-char -finline-functions";;
 	*)
 		DEBUG="-g -Wall -fsigned-char"
-		OPT="-O20 -fsigned-char";;
+		OPT="${CFLAGS} -fsigned-char";;
         esac
 fi
 
 AC_HEADER_STDC
 
-CFLAGS=""
+dnl Uncomment the following if you don't want to honor CFLAGS passed in from
+dnl the environment.
+dnl
+dnl CFLAGS=""
 
 TYPESIZES="" 
 
@@ -48,10 +47,10 @@ case 4 in
 	$ac_cv_sizeof_long) SIZE32="long";;
 esac
 
-AC_CHECK_TYPE(int16_t,$SIZE16)
-AC_CHECK_TYPE(int32_t,$SIZE32)
-AC_CHECK_TYPE(u_int16_t,$SIZE16)
-AC_CHECK_TYPE(u_int32_t,$SIZE32)
+#AC_CHECK_TYPE(int16_t,$SIZE16)
+#AC_CHECK_TYPE(int32_t,$SIZE32)
+#AC_CHECK_TYPE(u_int16_t,$SIZE16)
+#AC_CHECK_TYPE(u_int32_t,$SIZE32)
 
 if test -z "$SIZE16"; then
 	AC_MSG_ERROR(No 16 bit tupe found on this platform!)
